const app = getApp()
import { getFollowSupplierList } from '../../../api/index'

Page({
  data: {
    list: []
  },
  async getList () {
    try {
      const { ResultSet } = await getFollowSupplierList()
      this.setData({
        list: ResultSet.userData.data
      })
    } catch (err) {
      wx.showToast({ title: err.message || err.ResultSet.errors, icon: 'none' })
    }
  },
  onLoad () {
    // const { screenHeight, safeArea: { bottom } } = wx.$pro.getSystemInfoSync()
    // this.setData({ safeBottom: screenHeight - bottom })
    this.getList()
  }
})